package com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.b_lazy.c_thread_unsafe;

/**
 * @description:
 * @date: 2023/3/19 12:52.
 * @version: 1.0
 */
public class LazySingleton {

    private LazySingleton() {
    }

    ;

    private static LazySingleton lazySingleton = null;

    public static LazySingleton getInstance() {
        if (lazySingleton == null) {
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }

}
